# -*- coding: utf-8 -*-
"""
Created on Thu Aug 25 10:36:19 2022

@author: xiong
"""

import yaml
import logging
logger = logging.getLogger("facebook_spider")

class YmlReader():
    def __init__(self):
        try:
            self.settings = yaml.load(open("settings.yml", 'r'),Loader=yaml.FullLoader)
        except Exception as e:
            self.settings = {"error":e}
            logger.info("No configuration files were found")